<%@page import="org.hibernate.envers.entities.mapper.relation.lazy.initializor.ListCollectionInitializor"%>
<%@ page import="cardbs.domain.Employee"%>
<%@ page import="cardbs.domain.Department"%>
<%@ page import="cardbs.domain.Part"%>
<%@ page import="java.util.*"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Διαγραφή Ανταλλακτικών</title>
</head>
<body>
<%
Employee employee = (Employee)session.getAttribute("Administrator");
//Department[] departments= (Department[])request.getAttribute("depList");
//List<Departments> departments = (List)request.getAttribute("depList");
//Department[] departments = (Department[])session.getAttribute("depList");
HashSet <Department> departments = (HashSet)session.getAttribute("depList");
%>
	<div align="center">
	<jsp:include page="exitPage.jsp"/>
	<form method="post" action="/car-dbs-implementation/ShowPartsServlet">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			
<tr><td>Επέλεξε τμήμα:</td><td><select name="department">
<% 
try {
for (Department department: departments){
%>
<option value="<%= department.getDepCode()%>"><%= department.getDepName()%></option>
<%
}
	} catch (Exception e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}

%></option>

</select>
</td>
<input type="hidden" name="page" value="diagrafiAllAntalaktikou.jsp" />
<td><input TYPE="submit" VALUE="Αναζήτηση" style="width: 193px"></td>
<td><a href="/car-dbs-implementation/uipages/firstPagePages/AdministratorViewLoginPage.jsp"><img src="../../images/CancelButton.png" style="border:1px solid black;"/></a></td></tr>		
		
		</table></form>

		
	</div>

</body>
</html>